home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbwiz13.zip
/
SOURCE.ZIP
/
ERRLEVEL.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-07-14
|
1KB
|
40 lines
comment #
+----------------------------------------------------------------------+
| |
| QBWiz Copyright (c) 1990-1992 Thomas G. Hanlin III |
| |
| QuickBasic Access Library |
| |
+----------------------------------------------------------------------+
#
public ERRLEVEL
extrn B$terminate: byte
.model medium
.code
ERRLEVEL proc ; set error level
mov bx,sp
mov ax,4[bx]
mov bx,offset B$terminate
mov cx,seg B$terminate
mov es,cx
mov byte ptr es:-3[bx],0B8h ; store opcode for "MOV AX,immed"
mov es:-2[bx],ax ; store immediate value
ret 2
ERRLEVEL endp ; set error level
end